package cn.edu.zucc.online_market.itf;

import java.util.ArrayList;

import cn.edu.zucc.online_market.model.*;
import cn.edu.zucc.online_market.util.BaseException;


public interface IUserManager {
	//unfinished
	public void addCart(int product_id ) throws BaseException;
	public ArrayList<BeanProductInCart> loadCart() throws BaseException;
	
	public void deleteProductFromCart(int product_id) throws BaseException;
		//cart and address 
	public BeanOrder createOrder() throws BaseException; 
	public void setAddress(BeanOrder order,BeanAddress address) throws BaseException;
	public BeanOrder settle(BeanAddress selected_address) throws BaseException;
	
	public void delete(String telephone) throws BaseException;
	//finished
	
	public BeanUser login(String user_telephone,String pwd) throws BaseException;
	public BeanUser register(String user_name,String user_pwd1,String user_sex,String user_email,String user_current_city,String user_telephone) throws BaseException;
	public BeanUser create_testUser();
	public void set_test_cart();

}
